#include "worker.h"
#include <QDebug>
#include <QThread>

Worker::Worker(int index, QObject *parent) : QObject(parent)
  ,index(index)
{

}

Worker::~Worker()
{
    qDebug() << "~Worker,threadId ="
             << QThread::currentThreadId() << "index = "<< index;
}

void Worker::dowork()
{
    qDebug() << "dowork,threadId ="
             << QThread::currentThreadId()
             << "index = "<< index;
}
